package com.examination.system.administrator.dao;


import com.examination.system.administration.Department;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 寇淇芮
 * @Date 2019/9/14 9:51
 */
@Mapper
@ResponseBody
public interface DepartmentMapper {

    int upateDepartmentByDepartmentName(@Param("department") String newDepartmentName, @Param("quantity") Integer quantity);

    int deleteByDepartmentId( String id);

    Page<Department> findDepartment();
}
